{* Smarty *}
<h2>Sequences list</h2>

{include file="paginate.tpl"}
<input type="button" onclick="document.location.href='{url module=$smarty.const.MODULE_EXPERIMENT action=$smarty.const.EXPERIMENT_ACTION_ADD_ITEM}';" value="Add item"/>
{if $params.ord_dir == 'asc'}{assign var=opp_dir value='desc'}{else}{assign var=opp_dir value='asc'}{/if}
<table width="95%" cellpadding="0" cellspacing="0" border="1">
	<tr>
		<th><a href="{url module=$smarty.const.MODULE_EXPERIMENT action=$ACTION ord_by=object_type_name ord_dir=$opp_dir}">Object_type</a></th>
		<th><a href="{url module=$smarty.const.MODULE_EXPERIMENT action=$ACTION ord_by=object_name ord_dir=$opp_dir}">Object</a></th>
		<th><a href="{url module=$smarty.const.MODULE_EXPERIMENT action=$ACTION ord_by=sequence_id ord_dir=$opp_dir}">Sequence_id</a></th>
		<th><a href="{url module=$smarty.const.MODULE_EXPERIMENT action=$ACTION ord_by=file_name ord_dir=$opp_dir}">File_name</a></th>
		<th><a href="{url module=$smarty.const.MODULE_EXPERIMENT action=$ACTION ord_by=file_description ord_dir=$opp_dir}">File_description</a></th>
		<th colspan="1">&nbsp;</th>
	</tr>
	{iterator from=$sequences item=sequence composite=true}
	<tr>
		<td>{$sequence->object_type->object_type_name->get_value()}</td>
		<td>{$sequence->object->object_name->get_value()}</td>
		<td>{$sequence->sequence->sequence_id->get_value()}</td>
		<td>{$sequence->files->file_name->get_value()}</td>
		<td>{$sequence->files->file_description->get_value()}</td>
		<th><a href="{url module=$smarty.const.MODULE_EXPERIMENT action=$smarty.const.EXPERIMENT_ACTION_DELETE_SEQUENCE id=$sequence->sequence->sequence_id->get_value()}" onclick="return confirm('Sure?');">Delete</a></th>
	</tr>
	{/iterator}
</table>

{include file="paginate.tpl"}